package org.wtfbbq.info;

public class OSInformation {
	
	private OSInformation () {}
	
	/**
	 * Returns the OS name
	 * @return the os name as a string
	 */
	public static String getName ( ) {
		return System.getProperty("os.name");
	}
	
	/**
	 * Returns the version of the OS
	 * @return os version as a string
	 */
	public static String getVersion ( ) {
		return System.getProperty("os.version");
	}
	
	/**
	 * Returns the os architecture
	 * @return os architecture as a string
	 */
	public static String getArchitecture ( ) {
		return System.getProperty("os.arch");
	}
	
	/**
	 * Print the system information to <code>System.out</code>
	 */
	public static void print ( ) {
		System.out.println( "Name: " + getName() + " Version: " + getVersion() + " Architecture: " + getArchitecture() );
	}
}